{extend name="base/main" }

{block name="body"}
<div class="lx_list">
    <ul>
        <?php foreach($doclist as $v): ?>     
        <li>
            <a href='/news/info/<?php echo $v['id']; ?>' title='<?php echo $v['title']; ?>'><?php echo $v['title']; ?></a>
            <div class="r"><?php echo date('m-d H:i' , $v['create_time']); ?></div>
        </li>
        <?php endforeach; ?>
    </ul>
</div>

<div class='m-page'>
    <a class='disabled' href='?tagname=<?php echo $tagname; ?>&page=1'>首页</a>
    <a class='disabled' href='<?php echo '?tagname='.$tagname.'&page='.($doclist->currentPage()-1 > 1 ? $doclist->currentPage()-1 : 1); ?>'>上页</a>
    <div class='pager_btn'>
        <span class='page_num'><?php echo $doclist->currentPage(); ?>/<?php echo $doclist->lastPage(); ?></span>
    </div>
    <a class='disabled' href='<?php echo '?tagname='.$tagname.'&page='.($doclist->currentPage() < $doclist->lastPage() ? $doclist->currentPage()+1 : $doclist->lastPage()); ?>'>下页</a>
    <a class='disabled' href='<?php echo '?tagname='.$tagname.'&page='.$doclist->lastPage(); ?>'>末页</a>
</div>


{/block}